<?php
function loginPageHdr($cssJs)
{
	$css = '#mainHeaderNoLogin{
		margin-top: 50px;
	}
	#mainHeaderNoLogin h1{
		margin: 0px;
		padding: 0px;
		text-transform: uppercase;
		font-weight: normal;
		border-bottom: 1px solid #333;	
		margin-bottom: 10px;
	}';
	$js = 'window.addEvent(\'load\',function() {
		new OverText(\'username\',{ //there are many more options available!!
			positionOptions: {
				offset: {
					x: 8,
					y: 8
				}
			}
		});
		new OverText(\'password\',{ //there are many more options available!!
			positionOptions: {
				offset: {
					x: 8,
					y: 8
				}
			}
		});';
	if(installation() == 'create' || get('forceInstall') == AUTH)
	{
	$js .= '
		
			new OverText(\'fname\',{ //there are many more options available!!
				positionOptions: {
					offset: {
						x: 8,
						y: 8
					}
				}
			});
			new OverText(\'lname\',{ //there are many more options available!!
				positionOptions: {
					offset: {
						x: 8,
						y: 8
					}
				}
			});
			new OverText(\'email\',{ //there are many more options available!!
				positionOptions: {
					offset: {
						x: 8,
						y: 8
					}
				}
			});
		
		';
	$css = '#mainHeaderNoLogin{
		margin-top: 0px;
	}
	#mainHeaderNoLogin h1{
		margin: 0px;
		padding: 0px;
		text-transform: uppercase;
		font-weight: normal;
		border-bottom: 1px solid #333;	
		margin-bottom: 10px;
	}';	
	}
	$js .= '});';
	$output = ($cssJs == 'css' ? $css : $js);
	return $output;
}

function mainPageHdr($cssJs)
{
	$css = '.buttons{
		background: #333;
		color: #fff;
		text-transform: uppercase;
		font-size: 12pt;
		padding: 5px;
	}
	h1{
		margin: 0px;
		padding: 0px;
		text-transform: uppercase;
		font-weight: normal;
		border-bottom: 1px solid #333;	
		margin-bottom: 10px;
	}
	#mainInventory{
		margin: auto;
		width: 900px;
		height: 400px;
		background: #fff;
		border: 2px solid #333;
		padding: 0px 0px 0px 0px;
		overflow-y: scroll;
		margin-bottom: 10px;
	}
	#inventoryControls{
		border-top: 1px solid #333;
		padding-top: 10px;
	}
	.odd{
		background: #eee;
	}
	.even{
	}';
	
	$js = '';	
	$output = ($cssJs == 'css' ? $css : $js);
	return $output;
}


$val = adminContent(true,false);

if($val)
{
	$dynCSS = mainPageHdr('css');
	$dynJS = mainPageHdr('js');
}
else
{
	$dynCSS = loginPageHdr('css');
	$dynJS = loginPageHdr('js');
}


?>